﻿using System.Runtime.Serialization;

namespace NiggleAmp.DAP
{
    [DataContract(Name = "type")]
    public class NAmpType : NAmpMediaBase
    {
        private string _pluralName;

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public string PluralName
        {
            get
            {
                if (string.IsNullOrEmpty(_pluralName) && !string.IsNullOrEmpty(Name))
                {
                    _pluralName = Name + "s";
                }
                return _pluralName;
            }
            set
            {
                _pluralName = value;
            }
        }

        [DataMember]
        public string Value { get; set; }
    }
}
